package com.universalInterface.lims_interface.vo.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author Lx
 * @date 2023/12/21 11:15
 * @description 创建实验室云空间参数对象
 */
@Data
@Schema(description = "创建实验室通道参数")
public class CreateSpaceChannelParam implements Serializable {

	private static final long serialVersionUID = -2188927334670986793L;

	@NotBlank(message = "用户名不能为空")
	@Schema(description = "用户名")
	private String user;

	@NotBlank(message = "密码不能为空")
	@Pattern(regexp = "^(?=.*\\d)(?=.*[a-zA-Z])(?=.*[^\\da-zA-Z\\s]).{8,16}$", message = "密码必须包含大小写字母,特殊字符和数字，且长度不低于8位")
	@Schema(description = "密码")
	private String password;

	@NotBlank(message = "实验室编号不能为空")
	@Schema(name = "labNum", description = "实验室编号")
	private String labNum;

	@NotBlank(message = "实验室通道json不能为空")
	@Schema(name = "channel", description = "实验室通道json")
	private String channel;

}
